package GUI;

import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.LayoutManager;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class GUI_page02_Clerk extends JPanel {

	JLabel titleLabel;
	JButton returnButton;
	JButton processPurchaseButton;
	JButton processReturnButton;
	
	public GUI_page02_Clerk() {
		this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		this.setBackground(Color.white);
		// title label
		titleLabel = new JLabel("AMS Clerk Menu", JLabel.CENTER);
		titleLabel.setVerticalTextPosition(JLabel.CENTER);
		
		titleLabel.setHorizontalTextPosition(JLabel.CENTER);
		titleLabel.setAlignmentX(Component.LEFT_ALIGNMENT);
		titleLabel.setFont(new Font("Century Gothic", Font.BOLD, 20));
		titleLabel.setForeground(Color.gray);
        this.add(titleLabel);
        
        this.add(Box.createRigidArea(new Dimension(0,20)));

        // return button
        returnButton = GUI_AMSStoreMain.makeGrayWhiteButton("Back", Component.LEFT_ALIGNMENT);
        this.add(returnButton);
        
        this.add(Box.createRigidArea(new Dimension(0,10)));

        // process purchase button
        processPurchaseButton = GUI_AMSStoreMain.makeGrayWhiteButton("Process a Purchase", Component.LEFT_ALIGNMENT);
        this.add(processPurchaseButton);
        
        this.add(Box.createRigidArea(new Dimension(0,5)));

        // process return button
        processReturnButton = GUI_AMSStoreMain.makeGrayWhiteButton("Process a Return", Component.LEFT_ALIGNMENT);
        this.add(processReturnButton);
	}

}
